package xmarti.vacaxm.beans.connect;

import java.util.Objects;

public class TypeDestination implements java.io.Serializable{
            
	 private int id;
	 private String name;
         private String description; 

    
	 public TypeDestination(){
             
         }
         public TypeDestination ( String name){		 
		 this.name= name;
	 }
         public TypeDestination ( String name,String description){		 
		 this.name= name;
                 this.description=description; 
	 }
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

        @Override
        public int hashCode() {
            int hash = 7;
            hash = 71 * hash + Objects.hashCode(this.name);
            return hash;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj == null) {
                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            final TypeDestination other = (TypeDestination) obj;
            if (!Objects.equals(this.name, other.name)) {
                return false;
            }
            return true;
        }
        public String getDescription() {
             return description;
         }

        public void setDescription(String description) {
            this.description = description;
        }
        
        public String toString(){
            return this.name; 
        }
}
